<#assign pageName="修改密码">
<@override name="head-styles">
</@override>
<@override name="page-content">
    <form class="layui-form padding-10" lay-filter="formPwdEdit">
          <@ctrl.Textbox path="users.uname" labelText="用户名" attributes="readonly" required="required"/>
          <@ctrl.Textbox path="users.oldPwd" labelText="原密码" type="password" required="required"/>
          <@ctrl.Textbox path="users.pwd" labelText="新密码" type="password" value="" required="required"/>
          <@ctrl.Textbox path="users.pwdConfirm" labelText="密码确认" type="password" required="required"/>
          <@ctrl.Hidden path="users.userId" />
          <@ctrl.Hidden path="users.indate" />
          <@ctrl.Hidden path="users.lastDate" />
          <@ctrl.Hidden path="users.modifyDate" />
          <@ctrl.Hidden path="users.logintimes"/>
          <@ctrl.Hidden path="users.enable"/>
          <@ctrl.FormAction buttons=['submit']/>
      </form>
</@override>
<@override name="page-scripts">
    <script>
        $(function(){
            layui.use(['form','layer', 'jquery'], function(){
                var form = layui.form;
                var layer=layui.layer;
                $=layui.jquery;
                //监听提交
                form.on('submit(submit)', function(data){
                    submitData(data.field, '${contextPath}/admin/users/editpwd');
                    return false;
                });
            })
        })
    </script>
</@override>
<@extends name="/layout/basepage.html"/> 
